home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: mozart.unx.sas.com!sassek
- From: sassek@wonka.unx.sas.com (Steve Krueger)
- Subject: Re: 3 bugs in SAS/C v. 6.56
- Originator: sassek@wonka.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <DnK0t0.1wp@unx.sas.com>
- Date: Thu, 29 Feb 1996 20:27:00 GMT
- X-Nntp-Posting-Host: wonka.unx.sas.com
- References: <4gjvvc$a3t@gjallar.daimi.aau.dk>
- Organization: SAS Institute Inc.
- Keywords: SAS/C,bug
-
-
- I too would like to thank you for reducing the problem down to
- such small examples. It make finding/fixing the problem much easier.
-
- In article <4gjvvc$a3t@gjallar.daimi.aau.dk>, liborius@daimi.aau.dk (Per Liboriussen) writes:
- |> I have found 3 bugs in SAS/C version 6.56: Two cases of generating bad code,
- |> and one case of refusing to compile a correct program. Below are descriptions
- |> of the problems, including the smallest programs I have been able to find
- |> which shows the bugs, and the commandlines used to compile. Hopefully someone
- |> from SAS reads this (and puts out a 6.57 patch ;-) ).
- |>
- |> -------------------------------------------------------------------------
- |> Number 1:
- |>
-
- This is a bug in phase 2 where it tries to remove unnecessary convert
- from word to long operands. In this case, it lost the info that a and b
- are unsigned. I have a fix for this problem, but this area of the compiler
- is very tricky. If you would like to try a test version, send me email.
-
-
- |> -------------------------------------------------------------------------
- |> Number 2:
- |>
-
- Still working on this one.
-
-
- |> Number 3:
- |>
-
- It is not ANSI to use narrow types (ie char, short, float) to old
- style function. We tried to make it work for as many cases as possible,
- but the one case where it can't work is if you have a prototype that
- says float, and an old style function definition. Change
-
- void foo(f)
- float f;
-
- to
-
- void foo(float f)
-
- and it will work ok.
-
- sk
-
-